package com.hyt.it.ogt.kq.service.gov.model.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 区域表
 * </p>
 *
 * @author yanghuankun@talkweb.com.cn
 * @since 2021-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_area")
@ApiModel(value = "Area对象", description = "区域表")
public class PtOfficeAreaDTO extends BaseEntity {

    @ApiModelProperty(value = "父ID")
    private Integer parentId;

    @ApiModelProperty(value = "父ID集，通过<,>连接，查询可通过FIND_IN_SET函数进行快速操作")
    private String parentIds;

    @ApiModelProperty(value = "地区名")
    private String name;

    @ApiModelProperty(value = "完整地区名")
    private String fullName;

    @ApiModelProperty(value = "排序号")
    private Integer sort;

    @ApiModelProperty(value = "地区编码")
    private Long regionCode;

    @ApiModelProperty(value = "地区级别")
    private Integer regionLevel;

    @ApiModelProperty(value = "备注")
    private String remarks;

}
